<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title></title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="__ADMIN_STATIC__/src/css/daokr.css" media="all">
</head>
<body>

  <div class="layui-form" lay-filter="layuiadmin-form-menu" id="layuiadmin-form-menu" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
        <label class="layui-form-label">选择上级</label>
        <div class="layui-input-inline">
          <select name="pid"" lay-verify="required">
            <option value="0">默认顶级</option>
              {foreach $lists as $vo} 
                  <option value="{$vo.id}">{$vo.lefthtml}{$vo.title}</option>
              {/foreach}
          </select>
        </div>
    </div>       
    <div class="layui-form-item">
      <label class="layui-form-label">菜单名称</label>
      <div class="layui-input-inline">
        <input type="text" name="title" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">如：系统管理</div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">菜单URL</label>
      <div class="layui-input-inline">
        <input type="text" name="name" lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
      </div>
      <div class="layui-form-mid layui-word-aux">如：admin/user/index 顶级菜单填写“#”</div>
    </div>    
    <div class="layui-form-item">
      <label class="layui-form-label">排序号</label>
      <div class="layui-input-inline">
        <input type="text" name="sort" value="1" lay-verify="required|number" placeholder="请输入邮箱" value="1" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">CSS样式</label>
      <div class="layui-input-inline">
        <input type="text" name="css"  placeholder="请输入" autocomplete="off" class="layui-input">
      </div>
    </div>    
 
    <div class="layui-form-item">
      <label class="layui-form-label">状态</label>
      <div class="layui-input-inline">
        <input type="checkbox" name="status" checked="" lay-filter="switch" lay-skin="switch" lay-text="正常|禁用">
      </div>
    </div>
    <div class="layui-form-item layui-hide">
      <input type="button" lay-submit lay-filter="daokr-back-submit" id="daokr-back-submit" value="确认">
    </div>
  </div>

  <script src="__ADMIN_STATIC__/src/daokr.js"></script>  
  <script>
  layui.config({
    base: '__ADMIN_STATIC__/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form ;
  })
  </script>
</body>
</html>